package com.fangzc.codegen.entity.tables;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
 * 表定义层。
 *
 * @author FANGZC-TB14
 * @since 2023-05-27
 */
public class TSysMenu extends TableDef {

    public static final TSysMenu sys_menu = new TSysMenu("sys_menu");

    public QueryColumn menu_id = new QueryColumn(this, "menu_id");
    public QueryColumn menu_name = new QueryColumn(this, "menu_name");
    public QueryColumn parent_id = new QueryColumn(this, "parent_id");
    public QueryColumn order_num = new QueryColumn(this, "order_num");
    public QueryColumn path = new QueryColumn(this, "path");
    public QueryColumn component = new QueryColumn(this, "component");
    public QueryColumn is_frame = new QueryColumn(this, "is_frame");
    public QueryColumn is_cache = new QueryColumn(this, "is_cache");
    public QueryColumn menu_type = new QueryColumn(this, "menu_type");
    public QueryColumn visible = new QueryColumn(this, "visible");
    public QueryColumn status = new QueryColumn(this, "status");
    public QueryColumn perms = new QueryColumn(this, "perms");
    public QueryColumn icon = new QueryColumn(this, "icon");
    public QueryColumn create_by = new QueryColumn(this, "create_by");
    public QueryColumn create_time = new QueryColumn(this, "create_time");
    public QueryColumn update_by = new QueryColumn(this, "update_by");
    public QueryColumn update_time = new QueryColumn(this, "update_time");
    public QueryColumn remark = new QueryColumn(this, "remark");

    public QueryColumn[] default_columns = new QueryColumn[]{menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark};
    public QueryColumn[] all_columns = new QueryColumn[]{menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark};

    public TSysMenu(String tableName) {
        super(tableName);
    }
}
